//package com.geektime.hello.controller;
//
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import reactor.core.publisher.Flux;
//import reactor.core.publisher.Mono;
//
//import java.util.ArrayList;
//import java.util.List;
//
//@RestController
//@RequestMapping("webFlux")
//public class WebFluxController {
//
//    @GetMapping("mono")
//    public Mono<String> mono() {
//        return Mono.just("mono");
//    }
//
//    @GetMapping("flux")
//    public Flux<String> flux() {
//        List<String> list = new ArrayList<>();
//        list.add("flux1");
//        list.add("flux2");
//        list.add("flux3");
//        return Flux.fromIterable(list);
//    }
//}
